#ifndef __LOG_H__
#define __LOG_H__

#define USE_LOG

#ifdef USE_LOG
#include <cstdio>
#define LOG_INIT() std::freopen("log.txt", "a+", stderr);
#define LOG(arg...) {std::fprintf(stderr, ##arg); std::fflush(stderr);}
#else
#define LOG_INIT()
#define LOG(...)
#endif

#endif // __LOG_H__
